/**
 * 
 */
package sqs.web;

import javax.servlet.ServletException;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;

import sqs.model.User;
import sqs.ejb.sessionbean.UserMgr;

/**
 * @author kjleng
 *
 */
public class UserController extends SimpleFormController {
	//private UserMgr userMgr;
	
	protected ModelAndView onSubmit(Object command) throws ServletException {
		User user = (User) command;
//		userMgr.getUserByUserName(user.getUsername());
		//User user = (User) command;
		//userMgr.getUserByUserName(user.getUsername());
		return new ModelAndView(getSuccessView());
	}

        /*
	public UserMgr getUserMgr() {
		return userMgr;
	}

	public void setUserMgr(UserMgr userMgr) {
		this.userMgr = userMgr;
	}
         **/
}
